import request from '@/utils/request.js'

//登录
export const userLoginService=(loginData)=>{
    return request.post('/admin/login',loginData)
}


//根据token查询当前用户
export const checkConService=()=>{
    return request.get('/admin/checkCon')
}

//检查审核
export const getUserService=()=>{
  return request.get('/user')
}


//按条件查询客户
export const getUserClientService=(data)=>{
  return request.post('/admin/getUserClient',data)
}


//新增来访者
export const userRegisterService=(RegisterData)=>{
  return request.post('/user/register',RegisterData)
}


//删除来访者
export const deleteClientService=(data)=>{
  return request.post('/admin/deleteClient',data)
}

//修改来访者
export const updateClientService=(data)=>{
  return request.post('/admin/updateClient',data)
}



//根据userid查工作时间
export const getWorkTimeService=(userid)=>{
  return request.get('/admin/getWorkTime',{
    params: { userid:userid}
  })
}



